package com.shopping.service;

import com.shopping.pojo.Comment;
import com.shopping.pojo.vo.CommentInfo;
import com.shopping.pojo.vo.ProductCommentInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentService {
    public List<CommentInfo> selectCommentByQuery(String userName, String  productName, int start, int limit);
    public int getCommentNum(String userName, String  productName);
    public List<CommentInfo> selectCommentByProductId(Integer productId);
    public boolean insertComment(Comment comment);
    public boolean deleteComment(Integer commentId);
    public List<ProductCommentInfo> selectCommentByUserId(Integer userId);

}
